package edu.hcmiu.portal.service;

import com.liferay.portal.kernel.bean.PortletBeanLocatorUtil;
import com.liferay.portal.kernel.util.ClassLoaderProxy;


/**
 * <a href="hook_userLocalServiceUtil.java.html"><b><i>View Source</i></b></a>
 *
 * <p>
 * ServiceBuilder generated this class. Modifications in this class will be
 * overwritten the next time is generated.
 * </p>
 *
 * <p>
 * This class provides static methods for the
 * <code>edu.hcmiu.portal.service.hook_userLocalService</code>
 * bean. The static methods of this class calls the same methods of the bean
 * instance. It's convenient to be able to just write one line to call a method
 * on a bean instead of writing a lookup call and a method call.
 * </p>
 *
 * @author Brian Wing Shun Chan
 *
 * @see edu.hcmiu.portal.service.hook_userLocalService
 *
 */
public class hook_userLocalServiceUtil {
    private static hook_userLocalService _service;

    public static edu.hcmiu.portal.model.hook_user addhook_user(
        edu.hcmiu.portal.model.hook_user hook_user)
        throws com.liferay.portal.SystemException {
        return getService().addhook_user(hook_user);
    }

    public static edu.hcmiu.portal.model.hook_user createhook_user(long userID) {
        return getService().createhook_user(userID);
    }

    public static void deletehook_user(long userID)
        throws com.liferay.portal.PortalException,
            com.liferay.portal.SystemException {
        getService().deletehook_user(userID);
    }

    public static void deletehook_user(
        edu.hcmiu.portal.model.hook_user hook_user)
        throws com.liferay.portal.SystemException {
        getService().deletehook_user(hook_user);
    }

    public static java.util.List<Object> dynamicQuery(
        com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
        throws com.liferay.portal.SystemException {
        return getService().dynamicQuery(dynamicQuery);
    }

    public static java.util.List<Object> dynamicQuery(
        com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
        int end) throws com.liferay.portal.SystemException {
        return getService().dynamicQuery(dynamicQuery, start, end);
    }

    public static edu.hcmiu.portal.model.hook_user gethook_user(long userID)
        throws com.liferay.portal.PortalException,
            com.liferay.portal.SystemException {
        return getService().gethook_user(userID);
    }

    public static java.util.List<edu.hcmiu.portal.model.hook_user> gethook_users(
        int start, int end) throws com.liferay.portal.SystemException {
        return getService().gethook_users(start, end);
    }

    public static int gethook_usersCount()
        throws com.liferay.portal.SystemException {
        return getService().gethook_usersCount();
    }

    public static edu.hcmiu.portal.model.hook_user updatehook_user(
        edu.hcmiu.portal.model.hook_user hook_user)
        throws com.liferay.portal.SystemException {
        return getService().updatehook_user(hook_user);
    }

    public static edu.hcmiu.portal.model.hook_user updatehook_user(
        edu.hcmiu.portal.model.hook_user hook_user, boolean merge)
        throws com.liferay.portal.SystemException {
        return getService().updatehook_user(hook_user, merge);
    }

    public static void clearService() {
        _service = null;
    }

    public static hook_userLocalService getService() {
        if (_service == null) {
            Object obj = PortletBeanLocatorUtil.locate(ClpSerializer.SERVLET_CONTEXT_NAME,
                    hook_userLocalServiceUtil.class.getName());
            ClassLoader portletClassLoader = (ClassLoader) PortletBeanLocatorUtil.locate(ClpSerializer.SERVLET_CONTEXT_NAME,
                    "portletClassLoader");

            ClassLoaderProxy classLoaderProxy = new ClassLoaderProxy(obj,
                    portletClassLoader);

            _service = new hook_userLocalServiceClp(classLoaderProxy);

            ClpSerializer.setClassLoader(portletClassLoader);
        }

        return _service;
    }

    public void setService(hook_userLocalService service) {
        _service = service;
    }
}
